'use strict';

var appServer = 'http://localhost:8088/management/system/store/upload_oss_param';
var bucket = 'apt-formal';
var region = 'oss-cn-shenzhen';

var urllib = OSS.urllib;
var Buffer = OSS.Buffer;
var OSS = OSS.Wrapper;
var STS = OSS.STS;

// Play without STS. NOT SAFE! Because access key id/secret are
// exposed in web page.

 var client = new OSS({
   region: 'oss-cn-shenzhen',
   accessKeyId: 'LTAIq8EJDJWUTU7g',
   accessKeySecret: 'jrh4txyDGOn8lSYAETBfUB6Or8W0UQ',
   bucket: 'apt-formal'
 });

 var applyTokenDo = function (func) {
   return func(client);
 };




